.TH E1432_SET_SINE_FREQ 3 E1432
.SH NAME
.nf
e1432_set_sine_freq \- Set source sine frequency of E1432 channels
e1432_get_sine_freq \- Get source sine frequency of E1432 channels
.fi
.IX e1432_set_sine_freq(3) 3
.IX e1432_get_sine_freq(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_sine_freq(E1432ID hw, SHORTSIZ16 ID,
                               FLOATSIZ32 sine_freq)
SHORTSIZ16 e1432_get_sine_freq(E1432ID hw, SHORTSIZ16 ID,
                               FLOATSIZ32 *sine_freq)
.cE
.SH DESCRIPTION

\fIe1432_set_sine_freq\fR sets the source sine frequency, of a single
channel or group of channels \fIID\fR, to the value given in
\fIsine_freq\fR.  When the source is in \fBE1432_SOURCE_MODE_SINE\fR
mode, this is the frequency that is generated.

\fIe1432_get_sine_freq\fR returns the current value of the source sine
frequency, of a single channel or group of channels \fIID\fR, into a
memory location pointed to by \fIsine_freq\fR.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained
with a call to \fIe1432_create_channel_group\fR, or the ID of a single
channel.

\fIsine_freq\fR is the sine frequency in Hertz.

For input channels, sine frequency is not used.

For source channels, the sine frequency is used when in
\fBE1432_SOURCE_MODE_SINE\fR mode.

For tach channels, sine frequency is not used.
.SH "RESET VALUE"
After a reset, the \fIsine_freq\fR is set to 1 kHz.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_set_source_mode, e1432_set_sine_phase, e1432_get_sine_freq_limits
.ad
